<%@page import="com.hh.baseframework.util.statics.SysParam"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.google.gson.Gson"%>
<%
	Gson gson = new Gson();
%>
<style>
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	background-color: #fff;
	filter: alpha(opacity = 40);
	-moz-opacity: 0.4;
	opacity: 0.4;
	z-index: 2000000000001;
}
#loading {
	height: auto;
	position: absolute;
	border: 3px solid #ccc;
	left: 45%;
	top: 40%;
	padding: 2px;
	z-index: 2000000000001;
}

#loading .loading-indicator {
	background: white;
	color: #444;
	font: bold 12px Helvetica, Arial, sans-serif;
	height: auto;
	margin: 0;
	padding: 10px;
}
</style>
</head>

<body onLoad="Init.init();">
	<div id="doing" class="overlay" >
	</div>
	<div id="loading">
		<div class="loading-indicator">
			<img src="/hhcommon/images/loading/loading.gif" width="16" height="16"
				style="margin-right: 8px; float: left; vertical-align: top;" />执行中，请稍后......
				&nbsp;&nbsp;<a href="javascript:Doing.hidden(true);">关闭</a>
		</div>
	</div>
	<form id="system_open_page_form" method="post" target="_blank">
		<input type="hidden" name="params" id="params" />
	</form>
	<%@ include file="/hhcommon/include/base.jsp"%>
	<script type="text/javascript">
	var Init = {
		init : function() {
			setTimeout("Init.initHeight();", 100);
		},
		initHeight : function() {
			Ext.override(com.hh.base.BaseWindow, {
				width : BrowserContext.getBrowserWidth() - 300,
				height : BrowserContext.getBrowserHeight() - 100
			});
			Ext.override(com.hh.base.BaseServicePanel, {
				width : BrowserContext.getBrowserWidth() - 300,
				height : BrowserContext.getBrowserHeight() - 100
			});
		}
	}
	static_var.loginuser = eval('(' + '<%=gson.toJson(session.getAttribute("loginuser"))%>' + ')');
	static_var.openType =<%=SysParam.hhSysParam.getOnePage()%>;
	if(static_var.loginuser!=null&&static_var.loginuser!=''){
		static_var.currOrg = eval('(' + '<%=gson.toJson(session.getAttribute("currOrg"))%>' + ')');
		static_var.pageSize = static_var.loginuser.hhXtZmsx.pageSize;
	}
	Ext.Ajax
			.on(
					'requestcomplete',
					function(conn, response, options) {
						if (response.getAllResponseHeaders == null) {
							return;
						}
						if (response.getAllResponseHeaders().sessionstatus == 'timeout') {
							Login.show({
								jump : false
							});
						} else if (response.getAllResponseHeaders().sessionstatus == "no_authority") {
							var result = Ext.decode(response.responseText);
							if (result) {
								if (result.sessionstatusMsg) {
									Ext.example.msg('提示',
											result.sessionstatusMsg, 3000);
								} else {
									Ext.example.msg('提示', "对不起，您没有权限操作此功能！",
											3000);
								}
							} else {
								Ext.example.msg('提示', "对不起，您没有权限操作此功能！", 3000);
							}
						}
					}, this);
</script>
</body>